package com.example.spring.bean;

import java.util.Date;

// FactoryBean的实战
public class Student {
    // java.util.Date 在spring被当作简单类型,但是日期有要求
    // 也可以被当作非简单类型
    private Date birth;

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    @Override
    public String toString() {
        return "Student{" +
                "birth=" + birth +
                '}';
    }
}
